package com.mengfx.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.mengfx.bean.Post;

public interface PostMapper extends BaseMapper<Post>{
	int getCount();
	List<Post> getPostByPage(@Param("page")int page,@Param("size")int size,@Param("description")String description);
	int deletePost(Long postId);
	
	int markPost(Long postId);
	int cancelMark(Long postId);
	
	List<Post> getTimePost();
	
	List<Post> getPostVideoList();
	
	List<Post> getTopPostPicList(int type); 
	
	int topPost(@Param("postId")Long postId,@Param("top")Integer top);
	
	List<Post> getTopPostVideoHasTop(int type);
	
	List<Post> getTopPostList();
}